import request from '@/utils/request'


// 分页查询主权限相关
export function pageRoomPrimary(params) {
    return request({
        url: '/api/meetingRoomPrimary/pageRoom',
        method: 'get',
        params
    })
}
export function addRoom(data) {
    return request({
        url: '/api/meetingRoomPrimary/add',
        method: 'post',
        data
    })
}
export function updateRoomPrimary(data) {
    return request({
        url: '/api/meetingRoomPrimary/update',
        method: 'post',
        data
    })
}
export function deleteById(data) {
    return request({
        url: '/api/meetingRoomPrimary/deleteById',
        method: 'post',
        data
    })
}


// 会议室编辑相关
export function pageRoomInfo(params) {
    return request({
        url: '/api/meetingRoom/page',
        method: 'get',
        params
    })
}
export function updateRoomInfoAndApprovalAuth(data) {
    return request({
        url: '/api/meetingRoom/updateById',
        method: 'post',
        data
    })
}
